package com.atguigu.common.exception;

import lombok.Getter;
import lombok.Setter;

/**
 * description: NotStockException
 * date: 2022/12/26 17:50
 * author: MR.孙
 */
public class NotStockException extends RuntimeException{

    @Setter
    @Getter
    private Long skuId;


    public NotStockException(Long skuId) {
        super("商品id:"+skuId+";库存不足");
    }

    public NotStockException(String message) {
        super(message);
    }

}
